package news.pojo;

import java.time.LocalDateTime;
import java.util.Date;

public class News {
    private int id;
    private String cate;
    private String title;
    private String content;
    private String source;
    private String author;
    private Date pubTime;
    private int status;
    private int level;

    public void setPubTime(Date pubTime) {
        this.pubTime = pubTime;
    }
    public Date getPubTime() {
        return pubTime;
    }

    @Override
    public String toString() {
        return "News{" +
                "id=" + id +
                ", cate='" + cate + '\'' +
                ", title='" + title + '\'' +
                ", content='" + content + '\'' +
                ", source='" + source + '\'' +
                ", author='" + author + '\'' +
                ", pubTime=" + pubTime +
                ", status=" + status +
                ", level=" + level +
                '}';
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getCate() {
        return cate;
    }

    public void setCate(String cate) {
        this.cate = cate;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getSource() {
        return source;
    }

    public void setSource(String source) {
        this.source = source;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }


    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public int getLevel() {
        return level;
    }

    public void setLevel(int level) {
        this.level = level;
    }
}
